package com.jz.community.moduleshopping.timeLimit.bean;

import com.jz.community.basecomm.bean.baseCommInfo.LinksInfo;
import com.jz.community.basecomm.bean.baseCommInfo.PageInfo;

import java.util.List;

public class LimitGoodsBean {

    /**
     * currentTime : 2018-06-28 14:16:50
     * _embedded : {"content":[{"id":1,"title":"农夫山泉空泉水-社区人电商商品","outline":"农夫山泉空泉水-楼下小店商品","icon":"http://goodspics.oss-cn-beijing.aliyuncs.com/1528774977792.jpg?Expires=1844134973&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=mXxDrW1u%2FbZK5iMWz9AEomlBWh0%3D","saleCount":0,"buyType":3,"limitedStartTime":"2018-06-18 08:00:00","limitedStopTime":"2018-06-29 17:00:00","skuInfos":[{"id":1,"status":null,"version":1,"createTime":"2018-06-13 16:48:13","updateTime":"2018-06-13 16:48:13","price":2,"discountPrice":1,"stock":222,"charges":0,"code":null,"spStr":"规格|瓶","spidStr":"1|1","catNum":0}],"_embedded":{"category":{"id":9,"name":"快递代收","shopType":1,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-tables/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-categories/9"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-tables/2"}}}},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-sqrs/1"},"content":{"href":"http://api.shoppingyizhan.com/gds/goods/content/1"},"shopInfo":{"href":"http://api.shoppingyizhan.com/shp/shops/103"}}},{"id":2,"title":"圣桑-社区人楼下小店","outline":"http://freshtank.oss-cn-zhangjiakou.aliyuncs.com/1527237401944.jpg?Expires=1842597398&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=f%2FRiQBuKkaWY9hV8dwq%2Bwo6Ogq0%3D","icon":"http://goodspics.oss-cn-beijing.aliyuncs.com/1528774977792.jpg?Expires=1844134973&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=mXxDrW1u%2FbZK5iMWz9AEomlBWh0%3D","saleCount":0,"buyType":3,"limitedStartTime":"2018-06-19 08:50:00","limitedStopTime":"2018-06-19 09:00:00","skuInfos":[{"id":2,"status":null,"version":1,"createTime":"2018-06-13 16:49:18","updateTime":"2018-06-13 16:49:19","price":2,"discountPrice":1,"stock":222,"charges":0,"code":null,"spStr":"规格|瓶","spidStr":"2|2","catNum":0}],"_embedded":{"category":{"id":9,"name":"快递代收","shopType":1,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-tables/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-categories/9"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-tables/2"}}}},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-sqrs/2"},"content":{"href":"http://api.shoppingyizhan.com/gds/goods/content/2"},"shopInfo":{"href":"http://api.shoppingyizhan.com/shp/shops/103"}}},{"id":7,"title":"苹果-限时购","outline":"苹果-限时购","icon":"http://goodspics.oss-cn-beijing.aliyuncs.com/1529374701625.png?Expires=1844734693&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=pVc9qx2XNWpL6z%2BQ0XGKW5u2ITI%3D","saleCount":10,"buyType":3,"limitedStartTime":"2018-06-21 00:00:00","limitedStopTime":"2018-06-29 00:00:00","skuInfos":[{"id":4,"status":null,"version":1,"createTime":"2018-06-19 10:18:48","updateTime":"2018-06-19 10:18:48","price":22,"discountPrice":11,"stock":8,"charges":1,"code":null,"spStr":"重量|1kg","spidStr":"4|4","catNum":0},{"id":5,"status":null,"version":1,"createTime":"2018-06-19 10:18:48","updateTime":"2018-06-19 10:18:48","price":33,"discountPrice":11,"stock":8,"charges":1,"code":null,"spStr":"重量|2kg","spidStr":"4|5","catNum":0}],"_embedded":{"category":{"id":16,"name":"休闲零2食","shopType":2,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-table/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-categories/16"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-table/2"}}}},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-sqrs/7"},"content":{"href":"http://api.shoppingyizhan.com/gds/goods/content/7"},"shopInfo":{"href":"http://api.shoppingyizhan.com/shp/shops/79"}}}]}
     * _links : {"self":{"href":"http://api.shoppingyizhan.com/gds/goods-sqrs-limit-time?cityId=99999&limitedStartTime=2018-06-18%2008%3A00%3A00&limitedStopTime=2018-06-29%2017%3A00%3A00&page=0&size=10&sort=limitedStartTime,asc"}}
     * page : {"size":10,"totalElements":3,"totalPages":1,"number":0}
     * links : {"self":{"href":"http://api.shoppingyizhan.com/gds/goodslimittimeview"}}
     */

    private String currentTime;
    private EmbeddedBeanXX _embedded;
    private PageInfo page;

    public String getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(String currentTime) {
        this.currentTime = currentTime;
    }

    public EmbeddedBeanXX get_embedded() {
        return _embedded;
    }

    public void set_embedded(EmbeddedBeanXX _embedded) {
        this._embedded = _embedded;
    }


    public PageInfo getPage() {
        return page;
    }

    public void setPage(PageInfo page) {
        this.page = page;
    }

    public static class EmbeddedBeanXX {
        private List<ContentBeanX> content;

        public List<ContentBeanX> getContent() {
            return content;
        }

        public void setContent(List<ContentBeanX> content) {
            this.content = content;
        }

        public static class ContentBeanX extends LinksInfo{
            /**
             * id : 1
             * title : 农夫山泉空泉水-社区人电商商品
             * outline : 农夫山泉空泉水-楼下小店商品
             * icon : http://goodspics.oss-cn-beijing.aliyuncs.com/1528774977792.jpg?Expires=1844134973&OSSAccessKeyId=LTAIyu9pVcg3oPg9&Signature=mXxDrW1u%2FbZK5iMWz9AEomlBWh0%3D
             * saleCount : 0
             * buyType : 3
             * limitedStartTime : 2018-06-18 08:00:00
             * limitedStopTime : 2018-06-29 17:00:00
             * skuInfos : [{"id":1,"status":null,"version":1,"createTime":"2018-06-13 16:48:13","updateTime":"2018-06-13 16:48:13","price":2,"discountPrice":1,"stock":222,"charges":0,"code":null,"spStr":"规格|瓶","spidStr":"1|1","catNum":0}]
             * _embedded : {"category":{"id":9,"name":"快递代收","shopType":1,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-tables/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-categories/9"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-tables/2"}}}}
             * links : {"self":{"href":"http://api.shoppingyizhan.com/gds/goods-sqrs/1"},"content":{"href":"http://api.shoppingyizhan.com/gds/goods/content/1"},"shopInfo":{"href":"http://api.shoppingyizhan.com/shp/shops/103"}}
             */

            private String id;
            private String title;
            private String outline;
            private String icon;
            private int saleCount;
            private int buyType;
            private String limitedStartTime;
            private String limitedStopTime;
            private String status;
            private EmbeddedBeanX _embedded;
            private List<SkuInfosBean> skuInfos;

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getOutline() {
                return outline;
            }

            public void setOutline(String outline) {
                this.outline = outline;
            }

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public int getSaleCount() {
                return saleCount;
            }

            public void setSaleCount(int saleCount) {
                this.saleCount = saleCount;
            }

            public int getBuyType() {
                return buyType;
            }

            public void setBuyType(int buyType) {
                this.buyType = buyType;
            }

            public String getLimitedStartTime() {
                return limitedStartTime;
            }

            public void setLimitedStartTime(String limitedStartTime) {
                this.limitedStartTime = limitedStartTime;
            }

            public String getLimitedStopTime() {
                return limitedStopTime;
            }

            public void setLimitedStopTime(String limitedStopTime) {
                this.limitedStopTime = limitedStopTime;
            }

            public EmbeddedBeanX get_embedded() {
                return _embedded;
            }

            public void set_embedded(EmbeddedBeanX _embedded) {
                this._embedded = _embedded;
            }

            public List<SkuInfosBean> getSkuInfos() {
                return skuInfos;
            }

            public void setSkuInfos(List<SkuInfosBean> skuInfos) {
                this.skuInfos = skuInfos;
            }

            public static class EmbeddedBeanX {
                /**
                 * category : {"id":9,"name":"快递代收","shopType":1,"platformId":2,"platformInfo":"http://microservice.shoppingyizhan.com/dic/code-tables/2","_embedded":{"childCategory":[]},"links":{"self":{"href":"http://api.shoppingyizhan.com/gds/goods-categories/9"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-tables/2"}}}
                 */

                private CategoryBean category;

                public CategoryBean getCategory() {
                    return category;
                }

                public void setCategory(CategoryBean category) {
                    this.category = category;
                }

                public static class CategoryBean {
                    /**
                     * id : 9
                     * name : 快递代收
                     * shopType : 1
                     * platformId : 2
                     * platformInfo : http://microservice.shoppingyizhan.com/dic/code-tables/2
                     * _embedded : {"childCategory":[]}
                     * links : {"self":{"href":"http://api.shoppingyizhan.com/gds/goods-categories/9"},"platformInfo":{"href":"http://microservice.shoppingyizhan.com/dic/code-tables/2"}}
                     */

                    private String id;
                    private String name;
                    private int shopType;
                    private int platformId;
                    private String platformInfo;

                    public String getId() {
                        return id;
                    }

                    public void setId(String id) {
                        this.id = id;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public int getShopType() {
                        return shopType;
                    }

                    public void setShopType(int shopType) {
                        this.shopType = shopType;
                    }

                    public int getPlatformId() {
                        return platformId;
                    }

                    public void setPlatformId(int platformId) {
                        this.platformId = platformId;
                    }

                    public String getPlatformInfo() {
                        return platformInfo;
                    }

                    public void setPlatformInfo(String platformInfo) {
                        this.platformInfo = platformInfo;
                    }
                }
            }

            public static class SkuInfosBean {
                /**
                 * id : 1
                 * status : null
                 * version : 1
                 * createTime : 2018-06-13 16:48:13
                 * updateTime : 2018-06-13 16:48:13
                 * price : 2.0
                 * discountPrice : 1.0
                 * stock : 222
                 * charges : 0.0
                 * code : null
                 * spStr : 规格|瓶
                 * spidStr : 1|1
                 * catNum : 0
                 */

                private String id;
                private String status;
                private int version;
                private String createTime;
                private String updateTime;
                private String price;
                private String discountPrice;
                private int stock;
                private String charges;
                private String code;
                private String spStr;
                private String spidStr;
                private int catNum;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getStatus() {
                    return status;
                }

                public void setStatus(String status) {
                    this.status = status;
                }

                public int getVersion() {
                    return version;
                }

                public void setVersion(int version) {
                    this.version = version;
                }

                public String getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(String createTime) {
                    this.createTime = createTime;
                }

                public String getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(String updateTime) {
                    this.updateTime = updateTime;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public String getDiscountPrice() {
                    return discountPrice;
                }

                public void setDiscountPrice(String discountPrice) {
                    this.discountPrice = discountPrice;
                }

                public int getStock() {
                    return stock;
                }

                public void setStock(int stock) {
                    this.stock = stock;
                }

                public String getCharges() {
                    return charges;
                }

                public void setCharges(String charges) {
                    this.charges = charges;
                }

                public String getCode() {
                    return code;
                }

                public void setCode(String code) {
                    this.code = code;
                }

                public String getSpStr() {
                    return spStr;
                }

                public void setSpStr(String spStr) {
                    this.spStr = spStr;
                }

                public String getSpidStr() {
                    return spidStr;
                }

                public void setSpidStr(String spidStr) {
                    this.spidStr = spidStr;
                }

                public int getCatNum() {
                    return catNum;
                }

                public void setCatNum(int catNum) {
                    this.catNum = catNum;
                }
            }
        }
    }
}
